

const mixins = require('../../../mixins/user')
var a, e, app = getApp();
const common = require('../../../mixins/common')
const options = {

  /**
   * 页面的初始数据
   */
  data: {
    signature: "",
    birth: "",
    imagesubject:"",
    currentConfig: {
      show: false,
      transition: true,
      zIndex: 99,
      locked: false,
      direction: 'bottom',
      arcRadius: 18,
      maxHeight: 600,
      minHeight: 600,
      opacity: 0.4
    },
    isMine: true
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  addimage:function(){
    this.addPictures(1);
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    let user = app.globalData.user
    if (!user) {
      user = '';
    } else {
      this.getUserMineInfo();
    }
    this.setData({
      user: user,
    })
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  signatureChange: function(e) {
    this.setData({
      signature: e.detail.value
    })
  },

  nicknameChange:function(e){
    this.setData({
      nickName: e.detail.value
    })
  },

  bindDateChange: function(a) {
    this.setData({
      birth: a.detail.value
    });
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
}
mixins(options)
common(options)
Page(options)